package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.net.ByteArrayEx;

	public class RemoveRoadCardResponsePack extends AbstractReponsePack
	{
		public var x:int;
		public var y:int;
		public var cardId:int;
		public var hostUserId:int;

		public function RemoveRoadCardResponsePack(data:ByteArrayEx)
		{
			super(data);
		}

		override public function decode():void
		{
			super.decode();
			data.position = 4;
			x = data.readShort();
			y = data.readShort();
			cardId = data.readInt();
			hostUserId = data.readUnsignedInt();
		}

		override public function get tag():int
		{
			return ProtocalConstants.REMOVE_ROAD_CARD;
		}
	}
}
